<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		
		<script src="../../../assets/plugins/jquery/jquery.min.js"    ></script>
		<script src="../../../assets/plugins/requirejs/r.js"    ></script>
		<script src="../../../assets/common/config.js"    ></script>
	</head>
	<body>
	</body>
		
		<div id="div1" style="width:200px;height:200px;background-color:#465ae0;" onclick="u.log(u.m('sdds.ddsd1'));">test</div>
	<script>
		
		$(function(){ 
			require([  "require/demo/demo","require/extend/extend" ],  function( demo,children) {
				 
		          var classIns=demo.newC({'sunz':222,'modelId':'sdds.ddsd'}); 
		          /**
		           * 测试logM
		           */
                  u.log('========测试logM');
                  classIns.logM();
                  demo.logM(classIns);
                  u.logM(classIns);
                  /**
		           * 测试logModule
		           */
		          
                  u.log('========测试logModule');
                  classIns.logModule();
                  demo.logModule(classIns); 
                  u.logModule(classIns);
                  
                  
                  
                  /**
                   * 测试logModules
                   */
                  
                  u.log('========测试logModules');
                  classIns.logModules();
                  demo.logModules(classIns);
                  u.logModules(); 
                  
                  /**
                   * 测试m 和log
                   */
                  u.log('========测试m 和log');
                  classIns.log(classIns.m()); 
                  demo.log(demo.m(classIns)); 
                  u.log(u.m(classIns)); 
                  
                  
		          /**
		           * 测试c
		           */
                  u.log('========测试c');
                  u.log(classIns.c());
                  u.log(demo.c(classIns));
                  u.log(u.c(classIns));
                  
                  u.log('========测试多实例'); 
		          var classIns2=children.newC({'sunz':222111,'modelId':'sdds.ddsd1'});   
                  classIns2.logM();
                  classIns2.m()['sunz']=65544 ;
                  u.log('========根据modelId取实例');  
				  u.log(u.m('sdds.ddsd1')); 
                  u.log('========执行子类方法'); 
                  children.parentMethod();
                   
				  u.log('========查看utils'); 
                  u.log(u); 
                   
		   });  
			
		}) 
	</script>
</html>
